import { axios } from '@/utils/request'

/**
 * 查询可视化组件配置
 *
 * @author cdx
 * @date 2022-08-23 11:28:07
 */
export function biComponentPage (parameter) {
  return axios({
    url: '/biComponent/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 可视化组件配置列表
 *
 * @author cdx
 * @date 2022-08-23 11:28:07
 */
export function biComponentList (parameter) {
  return axios({
    url: '/biComponent/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加可视化组件配置
 *
 * @author cdx
 * @date 2022-08-23 11:28:07
 */
export function biComponentAdd (parameter) {
  return axios({
    url: '/biComponent/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑可视化组件配置
 *
 * @author cdx
 * @date 2022-08-23 11:28:07
 */
export function biComponentEdit (parameter) {
  return axios({
    url: '/biComponent/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除可视化组件配置
 *
 * @author cdx
 * @date 2022-08-23 11:28:07
 */
export function biComponentDelete (parameter) {
  return axios({
    url: '/biComponent/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出可视化组件配置
 *
 * @author cdx
 * @date 2022-08-23 11:28:07
 */
export function biComponentExport (parameter) {
  return axios({
    url: '/biComponent/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
